package com.green.javagreen.service;
import com.green.javagreen.bean.AdminUserBean;
import com.green.javagreen.bean.StudentUserBean;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

/**
 * email:brioal@foxmail.com
 * github:https://github.com/Brioal
 */
@Repository
public interface StudentUserRepository extends JpaRepository<StudentUserBean, Integer>, JpaSpecificationExecutor<StudentUserBean> {


    /**
     * 根据账号查询学生
     * @param code
     * @return
     */
    StudentUserBean findByCodeEquals(String code);

}